﻿using Shared.Domain.Interface;

namespace Shared.Domain.Abstructs
{
    /// <summary>
    /// 领域事件
    /// </summary>
    public abstract record BaseDomainEvent : IDomainEvent
    {
        /// <summary>
        /// tranceId
        /// </summary>
        Guid TraceId { get; } = Guid.NewGuid();

        /// <summary>
        /// 事件发生时间
        /// </summary>
        DateTime OccurredOn { get; } = DateTime.UtcNow;
    }
}
